package com.traffic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT;
import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/9/6
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("cts_about")
public class About implements Serializable {
    private static final long serialVersionUID = -7700786042991816460L;

    @JsonIgnore
    private Long id;

    private Long logo;

    /**
     * 版本号
     */
    private String version;

    /**
     * 网址
     */
    private String url;

    /**
     * 功能介绍
     */
    private String features;

    /**
     * 法律声明
     */
    private String legalNotices;

    /**
     * 平台协议
     */
    private String platformAgreement;

    /**
     * 0关闭 1启用
     */
    private Integer status;

    /**
     * 隐私条款
     */
    private String privacyPolicy;


    @TableField(fill = INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
